<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>

<%
	request.setAttribute("title","周报详情");
	request.setAttribute("modelConfigPath", "document");
	
%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<style type="text/css">

</style>

<t:panel cssClass="panel-flat form-detailed form-xs" customBody="true" customHead="true">
	<div class="detailed-navbar-content panel-body">
		<t:form commandName="weekLog" action="/admin/document/weekLog/save" method="post" cssClass="form-horizontal">
			<div class="hide">
				<t:hidden path="Id"/>
			</div>
			<t:formgroup>
					<t:label path="createUserId" cssClass="col-sm-2" />
					<t:select2 path="createUserId" colClass="col-sm-4" readonly="readonly" />
					<t:label path="publicMark" cssClass="col-sm-2"/>
					<t:selectButton path="publicMark" colClass="col-sm-4"/>
			</t:formgroup>
			<t:formgroup>
				<t:label path="referencesIds" cssClass="col-sm-2"/>
				<t:textarea path="referencesIds" rows="5" colClass = "col-sm-10"/>
			</t:formgroup>
			<t:formgroup>
				<t:label path="studyStatus" cssClass="col-sm-2"/>
				<t:textarea path="studyStatus" rows="5" colClass="col-sm-10"/>
			</t:formgroup>
			<t:formgroup>
				<t:label path="discussWithOthers" cssClass="col-sm-2"/>
				<t:textarea path="discussWithOthers" rows="5" colClass="col-sm-10"/>
			</t:formgroup>	
			<t:formgroup>
				<t:label path="problems" cssClass="col-sm-2"/>
				<t:textarea path="problems" rows="5" colClass="col-sm-10"/>
			</t:formgroup>			<t:formgroup>
				<t:label path="nextWeekTasks" cssClass="col-sm-2"/>
				<t:textarea path="nextWeekTasks" rows="5" colClass="col-sm-10"/>
			</t:formgroup>
			<t:formgroup>
				<t:label path="comments" cssClass="col-sm-2"  />
				<t:textarea path="comments" rows="5" colClass="col-sm-10" />
			</t:formgroup>
		</t:form>
	</div>
	<t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" onclick="saveData()" cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
</t:panel>


<script type="text/javascript">
	function saveData(){
		if (!$("form:first").valid()){
			return;
		}
		$("form:first").submit();
	}
	
	function selectAvatar(){
		window.frames["uploadAvatar"].$("#openFile").click();
	}
	
	function setAvatar(imgInfo){
		if(null==imgInfo||""==imgInfo)
			return;
		var avatarPath="<c:url value='/images/avatar/' />"+imgInfo;
		$("#avatar").val(avatarPath);
		$("#studentAvatar").attr("src",avatarPath);
	}
</script>

<%@ include file="/WEB-INF/views/shared/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>